import os

localip = os.environ.get('CENTERLOCALIP', '172.17.0.1')
apienv = {'prod': 'fgqnnudpf.aoaoco.com', 'local': localip}
wsenv = {'prod': 'Le8JDl9db.aoaoco.com', 'local': localip}
env = os.environ.get('CENTERENV', 'local')

SECRET_KEY = 'cd96146dcb09191a27e669aac5ebfb32d2a12b00'
IP_SECRET_KEY = 'f53983f048d68cc57bb362b25199fd5a019fce3b'

WS_URL = 'ws://%s:38728' % wsenv[env]

APP_RUN_DIR = '/tmp'
WS_LOG_FILE = '%s/ws.log' % APP_RUN_DIR
WS_PID_FILE = '%s/ws.pid' % APP_RUN_DIR

APP_DEBUG = os.environ.get('APP_DEBUG', '1')

API_URL = 'http://%s:18279/api' % apienv[env]
REGISTER_URL = '%s/center' % API_URL

BS_RDS_PERFIX = 'Browser'
KB_RDS_KEY = 'KEYBOARD_LOCK'
KB_LOCK_VAL = 1
KB_LOCK = 1
KB_UNLOCK = 0

